package com.geccocrawler.gecco.demo.handan;

import com.geccocrawler.gecco.GeccoEngine;
import com.geccocrawler.gecco.request.HttpGetRequest;
import com.geccocrawler.gecco.spider.JsonBean;

/**
 * Created with IntelliJ IDEA.
 * Description:河北邯郸
 * User: weixiaohu
 * Date: 2019/6/3
 * Time: 11:28
 */
public class SpiderMain implements JsonBean{

    public static void main(String[] args) {
        String jgUrl = "http://111.62.17.64:7000/ggfw/api/jcxx/fwzy/yyyd?akb021=&aae006=&aab034=&aka101=&pageNo=0&pageSize=20";
        HttpGetRequest start1 = new HttpGetRequest(jgUrl);
        start1.setCharset("GBK");
        GeccoEngine.create()
                .debug(true)
                .classpath("com.geccocrawler.gecco.demo.handan")
                .thread(1)
                .interval(2000)
                .start(start1)
                .start();

    }
}
